package io.renren.modules.erp.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.TimeZone;

@Data
@TableName("jsh_depot_head")
public class DepotHead implements Serializable {
    private Long id;

    private String type;

    private String subType;

    private String defaultNumber;

    private String number;
//    @JSONField(format="yyyy-MM-dd HH:mm:ss")
//    private Date createTime;
//    @JSONField(format="yyyy-MM-dd HH:mm:ss")
//    private Date operTime;
     private String createTime;
    private String operTime;

    private Long organId;
    private String supplier;
    private Long handsPersonId;

    private Long creator;

    private Long accountId;

    private BigDecimal changeAmount;

    private BigDecimal totalPrice;

    private String payType;

    private String remark;

    private String salesMan;

    private String accountIdList;

    private String accountMoneyList;

    private BigDecimal discount;

    private BigDecimal discountMoney;

    private BigDecimal discountLastMoney;

    private BigDecimal otherMoney;

    private String otherMoneyList;

    private String otherMoneyItem;

    private Integer accountDay;

    private String status;

    private String linkNumber;

    private Long tenantId;

    private String deleteFlag;
    @TableField(exist = false)
    private String depotHeadIDs;

    private String documentStatus;

    private String transportType;

    private String serviceType;

    private String isbill;

    private String deliverAddress;

    private String contacts;

    private String phoneNum;

    private String externalNumber;
    private String billType;
//
//    @JSONField(format="yyyy-MM-dd HH:mm:ss")
//    private Date salesDate;
     private String salesDate;
    @TableField(exist = false)
    private Date salesDate2;

    private String salesAddress;
    private String salesContacts;
    private String salesPhoneNum;

    private String trackingNumber;

    private String stockType;

    private String deliveryType;
    private String userName;
    //出库源单
    private String deliveryBillNo;
   //退货源单
    private String salesBillNo;

    private String otherstockBillNo;

    private String otherdeliveryBillNo;

//    @JSONField(format="yyyy-MM-dd HH:mm:ss")
//    private Date deliverDate;

    private String deliverDate;
    @TableField(exist = false)
    private Date deliverDate2;

    private Long total;
     //预计到货日期
    private String expectedDate;
    //采购退货源单
    private String purchaseSalesBillNo;
    //采购入库源单
    private String purchaseStockBillNo;
    //采购员
    @TableField(exist = false)
    private String buyer;
    //外部发货单号
    private String externalInvoiceNumber;
    //其他入库单号，这是调拨单新增有的
    private String otherstock;
    //其他出库单号，同上
    private String otherdelivery;
    //调拨类型
    private String transferType;
    //盘点状态，0未盘点、1盘点中、2盘点完成
    private String checkStatus;
    //商品id字符串
    @TableField(exist = false)
    private String depotItemIds;

    //销库源单,就是出库单的单号，用作关联
    private String accountSalesBillno;
    //采购进货源单,就是采购入库单的单号，用作关联
    private String purchaseBillno;
}